package com.zimi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
* 机构领导 model
* @author lxc
* @since 2019-07-16
*/
    @Data
    @Accessors(chain = true)
    @EqualsAndHashCode(callSuper = true)
    @ApiModel(value="SysOrgLeader对象", description="机构领导")
    public class SysOrgLeader extends Model<SysOrgLeader> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "原始机构编号")
    private Integer originOrgId;

    @ApiModelProperty(value = "机构编号")
    private Integer orgId;

    @ApiModelProperty(value = "岗位编号")
    private Integer postId;

    @ApiModelProperty(value = "排序号")
    private Integer leaderSort;

    @ApiModelProperty(value = "状态:1:有效 ；2：失效")
    private Integer state;

    @ApiModelProperty(value = "创建人")
    private Integer createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private Integer updateUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return id;
    }

}
